package com.gary.vueblog.entity;

import lombok.*;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * (MBlog)实体类
 *
 * @author makejava
 * @since 2020-12-08 10:17:17
 */
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@ToString
@Builder
public class MBlog implements Serializable {
    private static final long serialVersionUID = 763539332955261779L;
    /**
     * 主键id
     */
    private Long id;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 文章标题
     */
    @NotBlank
    private String title;
    /**
     * 描述
     */
    private String description;
    /**
     * 内容
     */
    private String content;
    /**
     * 创建时间
     */
    private LocalDateTime created;
    /**
     * 状态
     */
    private Integer status;


}